package com.controller;

import com.kafka.KafkaProduce;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName TestController
 * @Description TODO
 * @Author zhengmw
 * @Data 2024/7/26 10:54
 */
@RequestMapping("/kafka")
@RestController
public class TestController {
    @Resource
    private KafkaProduce kafkaProduce;

    @GetMapping("/send")
    public void send() {
        kafkaProduce.send();
    }
}
